<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>部门详细</title>
    <link href="Content/jquery-easyui-1.3.0/themes/gray/easyui.css" rel="stylesheet" type="text/css" />
    <link href="Content/jquery-easyui-1.3.0/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="Content/jquery-easyui-1.3.0/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="Content/jquery-easyui-1.3.0/jquery.easyui.min.js" type="text/javascript"></script>
    <link href="Content/css/Common.css" rel="stylesheet" type="text/css" />
    <script src="Content/js/JScriptCommon.js" type="text/javascript"></script>
    <jsp:include page="../inc/meta.jsp"></jsp:include>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <script type="text/javascript">
        $(function () {
            $("#frmDept :input").attr("readonly", "readonly");
            $("#back").click(function () {
                top.closeCurrentTab();
            });
        });
    
    </script>
  </head>
  @model IntePortal.Model.IP_Department
  <body>
    <div class="form-header">
        <div style="text-align: right;">
            <a id="back" class="easyui-linkbutton" iconcls="icon-undo" href="javascript:void(0)">
                返回</a>
        </div>
    </div>
    <div>
        <form id="frmDept" action="" method="post" class="l-form">
        <div class="l-group l-group-hasicon">
            <img src="Content/icons/communication.gif">
            <span>部门信息</span>
        </div>
        <ul>
            <li style="width: 100px; text-align: left;">部门名称：</li>
            <li style="width: 220px; text-align: left;">
                @Html.TextBoxFor(d => d.Name, new { style = "width: 214px" })
                @*                <input name="Name" id="deptName" style="width: 214px" />*@
            </li>
            <li style="width: 30px;" />
            <li style="width: 100px; text-align: left;">上级部门：</li>
            <li style="width: 220px; text-align: left;">
                @if (Model.IP_Department2 != null && !string.IsNullOrEmpty(Model.IP_Department2.Name))
                {
                    @Html.TextBoxFor(d => d.IP_Department2.Name, new { style = "width: 214px" })        
                }
                else
                {
                    <input name="_parentId" id="deptParent" style="width: 214px" />
                }
            </li>
            <li style="width: 30px;" />
        </ul>
        <ul>
            <li style="width: 100px; text-align: left;">部门排序：</li>
            <li style="width: 220px; text-align: left;">
                @Html.TextBoxFor(d => d.Sort, new { style = "width: 214px" })
            </li>
            <li style="width: 30px;" />
        </ul>
        <ul>
            <li style="width: 100px; text-align: left;">部门描述：</li>
            <li style="width: 570px; text-align: left;">
                @Html.TextAreaFor(d => d.Description, new { style = "resize: none; width: 564px" })
            </li>
        </ul>
        <div class="l-group l-group-hasicon">
            <img src="@Url.Content("~/Content/icons/communication.gif")">
            <span>其他信息</span>
        </div>
        <ul>
            <li style="width: 100px; text-align: left;">创建人：</li>
            <li style="width: 220px; text-align: left;">
                @Html.TextBoxFor(d => d.CreatePerson, new { style = "width: 214px" })
            </li>
            <li style="width: 30px;" />
            <li style="width: 100px; text-align: left;">创建时间：</li>
            <li style="width: 220px; text-align: left;">
                @Html.TextBoxFor(d => d.CreateDate, new { style = "width: 214px" })
            </li>
            <li style="width: 30px;" />
        </ul>
        <ul>
            <li style="width: 100px; text-align: left;">修改人：</li>
            <li style="width: 220px; text-align: left;">
                @Html.TextBoxFor(d => d.UpdatePerson, new { style = "width: 214px" })
            </li>
            <li style="width: 30px;" />
            <li style="width: 100px; text-align: left;">修改时间：</li>
            <li style="width: 220px; text-align: left;">
                @Html.TextBoxFor(d => d.UpdateDate, new { style = "width: 214px" })
            </li>
        </ul>
        </form>
    </div>
</body>
</html>
